package io.rehuo.modules.app.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 登录表单
 */
@Data
@ApiModel(value = "登录表单")
public class LoginForm {
    @ApiModelProperty(value = "手机号")
    @NotBlank(message="params is not null")
    private String mobile;

    @ApiModelProperty(value = "验证码")
    @NotBlank(message="code is not null")
    private String code;

    @ApiModelProperty(value = "贷款额度")
    @NotNull(message="params is not null")
    private Integer applyMoney;

    @ApiModelProperty(value = "日期")
    @NotBlank(message="params is not null")
    private String date;

    private String channel;

}
